package com.cloud.drore.eboss.supplier.service;

import com.cloud.drore.eboos.common.base.PagePo;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.supplier.ProductRelation;
import com.cloud.drore.eboos.common.entity.supplier.vo.ConsumeAndPoiForDealer;
import com.cloud.drore.eboos.exception.BusinessException;
import com.cloud.drore.eboss.supplier.entity.po.ProductRelationPo;
import com.cloud.drore.eboss.supplier.entity.vo.ProductQueryVo;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/9 11:01 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
public interface IProductRelationService {

    ResultMessage findByName(PagePo pagePo);

    List<ProductRelation> findByParam(ProductRelationPo productRelation);

    Long selectIdByTypeAndId(String type, Long productId);

    ProductRelation findById(Long id);

    List<ProductQueryVo> selectProductIdBySupplierId(Long id);

    ProductRelation selectProductByProNum(String proNum)throws BusinessException;

    List<ProductRelation> selectProductListByProNum(String proNum)throws BusinessException;

    ProductRelation selectProductByTypeAndId(String type, Long productId);

    int updateProductByParam(ProductRelation relation);

    ConsumeAndPoiForDealer findPoiAndConsumeForDealer(String productNum)throws BusinessException;
}